import request from '@/utils//request/index'

export interface QueryParams{
    name:string
    pin:string
    beginTime:string
    endTime:string
    collageId:string
    classId:string,
    pageNum:number,
    pageSize:number
}
//进出校园记录
export function getRecordTeacherList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/record/teacher/list',
        data:query
    })
}
export function getRecordStudentList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/record/student/list',
        data:query
    })
}
//晚归列表
export function getRecordTeacherLateList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/record/teacher/lateList',
        data:query
    })
}
export function getRecordStudentLateList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/record/student/lateList',
        data:query
    })
}

//校外时间统计列表
export function getTimeTeacherList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/time/teacher/list',
        data:query
    })
}

export function getTimeStudentList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/time/student/noticeList',
        data:query
    })
}
//校外时间预警列表
export function getTimeStudentNoticeList(query:QueryParams){
    return request.get({
        url:'cy-othertime/time/student/noticeList',
        data:query
    })
}
export function getTimeTeacherNoticeList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/time/teacher/noticeList',
        data:query
    })
}
//未归列表
export function getRecordTeacherReturnList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/record/teacher/returnList',
        data:query
    })
}
export function getRecordStudentReturnList(query:QueryParams){
    return request.get({
        url:'cy-othertime/mobile/record/teacher/returnList',
        data:query
    })
}
//院系列表
export function getRecordCollageList(){
    return request.get({
        url:'system/common/service/deptClassList'
    })
}
//班级列表
export function getRecordClassList(body : { parentId:string }){
    return request.get({
        url:'system/common/service/deptParentList',
        data:body
    })
}
